import { request } from "../tools/request"

module.exports = (query: { [key: string]: any }) => {

    const { start, count, cat_id, tag_id, sort_by } = query;

    /*
        cat_id  模块ID  tag_id  模块标签ID  start获取开始位置   count获取项数
        sort_by(排序) 0 => 按回复时间 1 => 按发布时间 2 => 按版本精华
    */

    return request('/post/list/ANDROID/2.1', 'get', {
        start: start || 0,
        count: count || 20,
        cat_id: cat_id,
        tag_id: tag_id || 0,
        sort_by: sort_by || 0
    });
}